package com.msstudio.message.handler;

import java.io.IOException;
import org.webbitserver.WebSocketConnection;
import com.msstudio.message.Register;

public class RegisterHandler extends MessageHandler {
	@Override
	public void handleMessage(WebSocketConnection connection,
			byte[] messageBytes) {
		Register message = null;
		try {
			message = Register.parseFrom(messageBytes);
		} catch (IOException ex) {
			logger.severe("Failed to handle:" + ex.getMessage());
			return;
		}
		logger.info(message.getUsername() + "/" + message.getPassword());

	}

}
